package com.caac.core.dao.hibernate;

import java.util.Date;

import com.caac.core.dao.SysLogDao;
import com.caac.core.dm.SysLog;
import com.caac.core.util.DateUtils;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright caac 2004</p>
 * <p>Company: caac</p>
 * @author <a href="mailto:project@caac.com.cn">Project Group</a>
 * @version 1.0
 */

public class SysLogDaoHibernate extends BaseDaoHibernate implements SysLogDao {
    public void saveSysLog(SysLog sysLog) {
        getHibernateTemplate().saveOrUpdate(sysLog);
    }

    public void deleteSysLogByOperateTime(Date operateTime) {
        this.execNoResultSql("delete from sys_log where operate_time<'" +
                             DateUtils.convertToString(operateTime) + "'");
    }
}
